class DocxFileTemplate {
    constructor(id, name, identifiers, findDataWithStringAndNumberObjects, archivePath) {
        this.id = id;
        this.name = name;
        this.identifiers = identifiers;
        this.findDataWithStringAndNumberObjects = findDataWithStringAndNumberObjects;
        this.archivePath = archivePath;
    }

    // 示例方法，可以用于返回当前对象的数据，方便后续传递给后端等操作
    getData() {
        return {
            id: this.id,
            name: this.name,
            identifiers: this.identifiers,
            findDataWithStringAndNumberObjects: this.findDataWithStringAndNumberObjects.map(obj => ({
                tag: obj.tag,
                addIndex: obj.addIndex,
                replacePathString: obj.replacePathString,
                extractCommonFeatures: obj.extractCommonFeatures,
                usage: obj.usage,
                usefulString: obj.usefulString
            })),
            archivePath: this.archivePath
        };
    }
}
// 使用export default导出这个类
export default DocxFileTemplate;